﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CommunitySystemModel
{
    [Serializable]
    [DataContract]
    public class ZhaoLuJiHuaDetailModel
    {
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _Sec;
        [DataMember]
        public int Sec
        {
            get { return _Sec; }
            set { _Sec = value; }
        }
        private int _ZhaoLuJiHuaID;
        [DataMember]
        public int ZhaoLuJiHuaID
        {
            get { return _ZhaoLuJiHuaID; }
            set { _ZhaoLuJiHuaID = value; }
        }

        private int _HDXZBZS_QJJG;
        [DataMember]
        public int HDXZBZS_QJJG
        {
            get { return _HDXZBZS_QJJG; }
            set { _HDXZBZS_QJJG = value; }
        }

        private int _HDXZBZS_JD;
        [DataMember]
        public int HDXZBZS_JD
        {
            get { return _HDXZBZS_JD; }
            set { _HDXZBZS_JD = value; }
        }

        private int _HDXZBZS_XZ;
        [DataMember]
        public int HDXZBZS_XZ
        {
            get { return _HDXZBZS_XZ; }
            set { _HDXZBZS_XZ = value; }
        }

        private int _HDXZBZS_ZF;
        [DataMember]
        public int HDXZBZS_ZF
        {
            get { return _HDXZBZS_ZF; }
            set { _HDXZBZS_ZF = value; }
        }

        private int _SYRS_QJJG;
        [DataMember]
        public int SYRS_QJJG
        {
            get { return _SYRS_QJJG; }
            set { _SYRS_QJJG = value; }
        }

        private int _SYRS_JD;
        [DataMember]
        public int SYRS_JD
        {
            get { return _SYRS_JD; }
            set { _SYRS_JD = value; }
        }

        private int _SYRS_XZ;
        [DataMember]
        public int SYRS_XZ
        {
            get { return _SYRS_XZ; }
            set { _SYRS_XZ = value; }
        }

        private int _SYRS_ZF;
        [DataMember]
        public int SYRS_ZF
        {
            get { return _SYRS_ZF; }
            set { _SYRS_ZF = value; }
        }

        private int _JYRS_QJJG;
        [DataMember]
        public int JYRS_QJJG
        {
            get { return _JYRS_QJJG; }
            set { _JYRS_QJJG = value; }
        }

        private int _JYRS_JD;
        [DataMember]
        public int JYRS_JD
        {
            get { return _JYRS_JD; }
            set { _JYRS_JD = value; }
        }

        private int _JYRS_XZ;
        [DataMember]
        public int JYRS_XZ
        {
            get { return _JYRS_XZ; }
            set { _JYRS_XZ = value; }
        }

        private int _JYRS_ZF;
        [DataMember]
        public int JYRS_ZF
        {
            get { return _JYRS_ZF; }
            set { _JYRS_ZF = value; }
        }

        private int _QBRS_QJJG;
        [DataMember]
        public int QBRS_QJJG
        {
            get { return _QBRS_QJJG; }
            set { _QBRS_QJJG = value; }
        }

        private int _QBRS_JD;
        [DataMember]
        public int QBRS_JD
        {
            get { return _QBRS_JD; }
            set { _QBRS_JD = value; }
        }

        private int _QBRS_XZ;
        [DataMember]
        public int QBRS_XZ
        {
            get { return _QBRS_XZ; }
            set { _QBRS_XZ = value; }
        }

        private int _QBRS_ZF;
        [DataMember]
        public int QBRS_ZF
        {
            get { return _QBRS_ZF; }
            set { _QBRS_ZF = value; }
        }

        private int _ZS_QJJG;
        [DataMember]
        public int ZS_QJJG
        {
            get { return _ZS_QJJG; }
            set { _ZS_QJJG = value; }
        }

        private int _ZS_JD;
        [DataMember]
        public int ZS_JD
        {
            get { return _ZS_JD; }
            set { _ZS_JD = value; }
        }

        private int _ZS_XZ;
        [DataMember]
        public int ZS_XZ
        {
            get { return _ZS_XZ; }
            set { _ZS_XZ = value; }
        }

        private int _ZS_ZF;
        [DataMember]
        public int ZS_ZF
        {
            get { return _ZS_ZF; }
            set { _ZS_ZF = value; }
        }

        private int _LiangNian;
        [DataMember]
        public int LiangNian
        {
            get { return _LiangNian; }
            set { _LiangNian = value; }
        }

        private int _YXCGB;
        [DataMember]
        public int YXCGB
        {
            get { return _YXCGB; }
            set { _YXCGB = value; }
        }

        private int _YXJWHGB;
        [DataMember]
        public int YXJWHGB
        {
            get { return _YXJWHGB; }
            set { _YXJWHGB = value; }
        }

        private int _DXSCG;
        [DataMember]
        public int DXSCG
        {
            get { return _DXSCG; }
            set { _DXSCG = value; }
        }

        private int _SZ;
        [DataMember]
        public int SZ
        {
            get { return _SZ; }
            set { _SZ = value; }
        }

        private int _BX;
        [DataMember]
        public int BX
        {
            get { return _BX; }
            set { _BX = value; }
        }

        private int _HDXZBZS_HJ;
        [DataMember]
        public int HDXZBZS_HJ
        {
            get { return _HDXZBZS_HJ; }
            set { _HDXZBZS_HJ = value; }
        }
        private int _SYRS_HJ;
        [DataMember]
        public int SYRS_HJ
        {
            get { return _SYRS_HJ; }
            set { _SYRS_HJ = value; }
        }

        private int _JYRS_HJ;
        [DataMember]
        public int JYRS_HJ
        {
            get { return _JYRS_HJ; }
            set { _JYRS_HJ = value; }
        }
        private int _QBRS_HJ;
        [DataMember]
        public int QBRS_HJ
        {
            get { return _QBRS_HJ; }
            set { _QBRS_HJ = value; }
        }
        private int _ZS_HJ;
        [DataMember]
        public int ZS_HJ
        {
            get { return _ZS_HJ; }
            set { _ZS_HJ = value; }
        }

        public static ZhaoLuJiHuaDetailModel FillEntity(DataRow dr)
        {
            ZhaoLuJiHuaDetailModel right = new ZhaoLuJiHuaDetailModel();
            if (dr.Table != null && dr.Table.Columns.Contains("Sec")) right.Sec = Convert.ToInt32(dr["Sec"]);
            if (!string.IsNullOrEmpty(dr["ID"].ToString())) right.ID = Convert.ToInt32(dr["ID"]);
            if (!string.IsNullOrEmpty(dr["ZhaoLuJiHuaID"].ToString())) right.ZhaoLuJiHuaID = Convert.ToInt32(dr["ZhaoLuJiHuaID"]);
            if (!string.IsNullOrEmpty(dr["HDXZBZS_QJJG"].ToString())) right.HDXZBZS_QJJG = Convert.ToInt32(dr["HDXZBZS_QJJG"]);
            if (!string.IsNullOrEmpty(dr["HDXZBZS_JD"].ToString())) right.HDXZBZS_JD = Convert.ToInt32(dr["HDXZBZS_JD"]);
            if (!string.IsNullOrEmpty(dr["HDXZBZS_XZ"].ToString())) right.HDXZBZS_XZ = Convert.ToInt32(dr["HDXZBZS_XZ"]);
            if (!string.IsNullOrEmpty(dr["HDXZBZS_ZF"].ToString())) right.HDXZBZS_ZF = Convert.ToInt32(dr["HDXZBZS_ZF"]);
            if (!string.IsNullOrEmpty(dr["SYRS_QJJG"].ToString())) right.SYRS_QJJG = Convert.ToInt32(dr["SYRS_QJJG"]);
            if (!string.IsNullOrEmpty(dr["SYRS_JD"].ToString())) right.SYRS_JD = Convert.ToInt32(dr["SYRS_JD"]);
            if (!string.IsNullOrEmpty(dr["SYRS_XZ"].ToString())) right.SYRS_XZ = Convert.ToInt32(dr["SYRS_XZ"]);
            if (!string.IsNullOrEmpty(dr["SYRS_ZF"].ToString())) right.SYRS_ZF = Convert.ToInt32(dr["SYRS_ZF"]);
            if (!string.IsNullOrEmpty(dr["JYRS_QJJG"].ToString())) right.JYRS_QJJG = Convert.ToInt32(dr["JYRS_QJJG"]);
            if (!string.IsNullOrEmpty(dr["JYRS_JD"].ToString())) right.JYRS_JD = Convert.ToInt32(dr["JYRS_JD"]);
            if (!string.IsNullOrEmpty(dr["JYRS_XZ"].ToString())) right.JYRS_XZ = Convert.ToInt32(dr["JYRS_XZ"]);
            if (!string.IsNullOrEmpty(dr["JYRS_ZF"].ToString())) right.JYRS_ZF = Convert.ToInt32(dr["JYRS_ZF"]);
            if (!string.IsNullOrEmpty(dr["QBRS_QJJG"].ToString())) right.QBRS_QJJG = Convert.ToInt32(dr["QBRS_QJJG"]);
            if (!string.IsNullOrEmpty(dr["QBRS_JD"].ToString())) right.QBRS_JD = Convert.ToInt32(dr["QBRS_JD"]);
            if (!string.IsNullOrEmpty(dr["QBRS_XZ"].ToString())) right.QBRS_XZ = Convert.ToInt32(dr["QBRS_XZ"]);
            if (!string.IsNullOrEmpty(dr["QBRS_ZF"].ToString())) right.QBRS_ZF = Convert.ToInt32(dr["QBRS_ZF"]);
            if (!string.IsNullOrEmpty(dr["ZS_QJJG"].ToString())) right.ZS_QJJG = Convert.ToInt32(dr["ZS_QJJG"]);
            if (!string.IsNullOrEmpty(dr["ZS_JD"].ToString())) right.ZS_JD = Convert.ToInt32(dr["ZS_JD"]);
            if (!string.IsNullOrEmpty(dr["ZS_XZ"].ToString())) right.ZS_XZ = Convert.ToInt32(dr["ZS_XZ"]);
            if (!string.IsNullOrEmpty(dr["ZS_ZF"].ToString())) right.ZS_ZF = Convert.ToInt32(dr["ZS_ZF"]);
            if (!string.IsNullOrEmpty(dr["LiangNian"].ToString())) right.LiangNian = Convert.ToInt32(dr["LiangNian"]);
            if (!string.IsNullOrEmpty(dr["YXCGB"].ToString())) right.YXCGB = Convert.ToInt32(dr["YXCGB"]);
            if (!string.IsNullOrEmpty(dr["YXJWHGB"].ToString())) right.YXJWHGB = Convert.ToInt32(dr["YXJWHGB"]);
            if (!string.IsNullOrEmpty(dr["DXSCG"].ToString())) right.DXSCG = Convert.ToInt32(dr["DXSCG"]);
            if (!string.IsNullOrEmpty(dr["SZ"].ToString())) right.SZ = Convert.ToInt32(dr["SZ"]);
            if (!string.IsNullOrEmpty(dr["BX"].ToString())) right.BX = Convert.ToInt32(dr["BX"]);

            if (!string.IsNullOrEmpty(dr["HDXZBZS_HJ"].ToString())) right.HDXZBZS_HJ = Convert.ToInt32(dr["HDXZBZS_HJ"]);
            if (!string.IsNullOrEmpty(dr["SYRS_HJ"].ToString())) right.SYRS_HJ = Convert.ToInt32(dr["SYRS_HJ"]);
            if (!string.IsNullOrEmpty(dr["JYRS_HJ"].ToString())) right.JYRS_HJ = Convert.ToInt32(dr["JYRS_HJ"]);
            if (!string.IsNullOrEmpty(dr["QBRS_HJ"].ToString())) right.QBRS_HJ = Convert.ToInt32(dr["QBRS_HJ"]);
            if (!string.IsNullOrEmpty(dr["ZS_HJ"].ToString())) right.ZS_HJ = Convert.ToInt32(dr["ZS_HJ"]);
            return right;
        }
    }
}
